-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(react-query): Add usePrefetchQueries
hook
#8734
base: main
Are you sure you want to change the base?
Conversation
View your CI Pipeline Execution ↗ for commit ad28506.
☁️ Nx Cloud last updated this comment at |
b3564b1
to
90802bc
Compare
usePrefetchQueries
hookusePrefetchQueries
hook
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8734 +/- ##
===========================================
+ Coverage 46.37% 84.96% +38.58%
===========================================
Files 199 27 -172
Lines 7551 379 -7172
Branches 1730 112 -1618
===========================================
- Hits 3502 322 -3180
+ Misses 3669 49 -3620
+ Partials 380 8 -372
🚀 New features to boost your workflow:
|
90802bc
to
cfc4a49
Compare
export function usePrefetchQueries( | ||
options: { | ||
queries: ReadonlyArray<FetchQueryOptions<any, any, any, any>> | ||
}, | ||
queryClient?: QueryClient, | ||
) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is FetchQueryOptions<any, any, any, any>
really good enough here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I extracted out the rather through recursive SuspenseQueriesOptions
recursive type reducer from useSuspenseQueries
and modified it for using FetchQueryOptions
in this case. Although were not gonna be using all that type information in this case at this point.
4b70794
to
f8860e5
Compare
f8860e5
to
75ba89f
Compare
No description provided.